package com.dkd.nacos.consumer.controller;

import com.dkd.nacos.consumer.client.ProducerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
@Slf4j
public class HelloController {

    @Autowired
    private ProducerService producerService;

    @RequestMapping("/nacos")
    public String hello() {
        return producerService.hello() + "haha";
    }
}
